package gorails.com;

import java.util.TreeMap;

public class TripListViewOption {
	private String title;
	private String numOfStops;
	private String express;
	private String departure;
	private String arrival;
	private TreeMap<String,String> stop;
	private boolean bringTicket = false;
	public TripListViewOption(){	
		title = "";
		numOfStops = "";
		express = "";
		departure = "";
		arrival = "";
		stop = new TreeMap<String,String>();
	}
	public void setBringTicket(boolean t){
		bringTicket = t;
	}
	public boolean needTicket(){
		return bringTicket;
	}
	public String getTitle(){
		return title;
	}
	public void setTitle(String t){
		title = t;
	}
	public String getNumOfStops(){
		return numOfStops;
	}
	public void setNumOfStops(String n){
		numOfStops = n;
	}
	public String getExpress(){
		return express;
	}
	public void setExpress(String e){
		express = e;
	}
	public String getDeparture(){
		return departure;
	}
	public void setDeparture(String d){
		departure = d;
	}
	public String getArrival(){
		return arrival;
	}
	public void setArrival(String a){
		arrival = a;
	}
	public void setStops(String station, String time){
		stop.put(station, time);
	}
	public TreeMap<String,String> getStops(){
		return stop;
	}
	public String toString(){
		return "title= "+title+"\nnumOfStops= "+numOfStops+"\nexpress= "+express+"\ndeparture= "+departure+"\narrival= "+arrival+"\nstops= "+stop.toString();
	}
}
